var request = require("request");
var $ = require("../../include/$");
var url = "http://api.map.baidu.com/geosearch/v3/";
var tablename = "store_map";
var geotable_id = 123228;
var ak = "yyvKdot9D7eZZvKsYliWchrg";
module.exports = {
	get: function(req, res) {
		req.models[tablename].get(req.query.geotable_id, function(err, store) {
			if (err) {
				console.log(500, err);
				res.send(500, err);
				return;
			};
			if (!store) {
				console.log("404 no found");
				res.send(404, "no found!!!");
				return;
			};
			res.send(store);
		});
	}
}